package com.dream.controller;

import java.util.List;

import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.dream.commons.base.BaseController;
import com.dream.commons.result.PageInfo;
import com.dream.commons.shiro.PasswordHash;
import com.dream.commons.shiro.ShiroUser;
import com.dream.commons.utils.JsonUtils;
import com.dream.commons.utils.StringUtils;
import com.dream.model.Organization;
import com.dream.model.Role;
import com.dream.model.SysLog;
import com.dream.model.User;
import com.dream.model.DTO.LayuiTreeDto;
import com.dream.model.DTO.SysLogReqDto;
import com.dream.model.DTO.roleDto.RoleDto;
import com.dream.model.DTO.roleDto.RoleListReqDto;
import com.dream.model.DTO.userDto.ChangePwdReqDto;
import com.dream.model.DTO.userDto.UserDto;
import com.dream.model.DTO.userDto.UserListReqDto;
import com.dream.service.OrganizationService;
import com.dream.service.ResourceService;
import com.dream.service.RoleService;
import com.dream.service.UserService;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 
 * @description：角色管理
 * @author zhouy
 * @date 2018-2-14
 */

@Controller
@RequestMapping("/org")
public class OrgController  extends BaseController {


 @Autowired
 private RoleService roleService;
 @Autowired
 private ResourceService resourceService;
 @Autowired
 private OrganizationService organizationService;	  
    /**
     * 角色列表页面
     * @return
     */
    
    @GetMapping("/manager")
    public String manager() {
        return "admin/orgList";
    }
    
    @PostMapping("/treegrid")
    @ResponseBody
    public String OrgTreegrid() {
    	List<Organization> ssList = organizationService.selectTreeGrid();
		return null;
	
    }
    
}
